
export default {
  update(el, binding, vnode) {
    console.log(vnode.componentInstance.columns)
    const head = vnode.componentInstance.columns.map((el, idx) => {
      if (el.label !== '序号' && el.label !== '操作') {
        return { prop: el.property, label: el.label, width: el.width, align: el.align ? el.align.split('-')[1] : el.align, sort: idx, show: '1' }
      }
    })
    console.log(JSON.stringify(head))
  }
}
